package com.TTBook.core.book.model;

import java.io.Serializable;
import java.util.Date;

public class BookStatus implements Serializable {
    private String bookid;

    private String bookStatus;

    private Date createTime;

    private Date updateTime;

    private Date putAwayTime;

    private Date undercarriageTime;

    private String operator;

    private String rejectReason;

    private String rejectFlag;

    private static final long serialVersionUID = 1L;

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid == null ? null : bookid.trim();
    }

    public String getBookStatus() {
        return bookStatus;
    }

    public void setBookStatus(String bookStatus) {
        this.bookStatus = bookStatus == null ? null : bookStatus.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPutAwayTime() {
        return putAwayTime;
    }

    public void setPutAwayTime(Date putAwayTime) {
        this.putAwayTime = putAwayTime;
    }

    public Date getUndercarriageTime() {
        return undercarriageTime;
    }

    public void setUndercarriageTime(Date undercarriageTime) {
        this.undercarriageTime = undercarriageTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator == null ? null : operator.trim();
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason == null ? null : rejectReason.trim();
    }

    public String getRejectFlag() {
        return rejectFlag;
    }

    public void setRejectFlag(String rejectFlag) {
        this.rejectFlag = rejectFlag == null ? null : rejectFlag.trim();
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof BookStatus)) {
            return false;
        }
        BookStatus other = (BookStatus) that;
        return this.getBookid() == null ? other == null : this.getBookid().equals(other.getBookid())
            && this.getBookStatus() == null ? other == null : this.getBookStatus().equals(other.getBookStatus())
            && this.getCreateTime() == null ? other == null : this.getCreateTime().equals(other.getCreateTime())
            && this.getUpdateTime() == null ? other == null : this.getUpdateTime().equals(other.getUpdateTime())
            && this.getPutAwayTime() == null ? other == null : this.getPutAwayTime().equals(other.getPutAwayTime())
            && this.getUndercarriageTime() == null ? other == null : this.getUndercarriageTime().equals(other.getUndercarriageTime())
            && this.getOperator() == null ? other == null : this.getOperator().equals(other.getOperator())
            && this.getRejectReason() == null ? other == null : this.getRejectReason().equals(other.getRejectReason())
            && this.getRejectFlag() == null ? other == null : this.getRejectFlag().equals(other.getRejectFlag());
    }

    public int hashCode() {
        int hash = 23;
        if (getBookid() != null) {
            hash *= getBookid().hashCode();
        }
        if (getBookStatus() != null) {
            hash *= getBookStatus().hashCode();
        }
        if (getCreateTime() != null) {
            hash *= getCreateTime().hashCode();
        }
        if (getUpdateTime() != null) {
            hash *= getUpdateTime().hashCode();
        }
        if (getPutAwayTime() != null) {
            hash *= getPutAwayTime().hashCode();
        }
        if (getUndercarriageTime() != null) {
            hash *= getUndercarriageTime().hashCode();
        }
        if (getOperator() != null) {
            hash *= getOperator().hashCode();
        }
        if (getRejectReason() != null) {
            hash *= getRejectReason().hashCode();
        }
        if (getRejectFlag() != null) {
            hash *= getRejectFlag().hashCode();
        }
        return hash;
    }
}